package ebook.thinking.chapter10;

import ebook.thinking.chapter10.TestParcel.Contents;

public class Parcel7 {

	public Contents contents() {
		return new Contents() {
			private int i = 11;

			@Override
			public int value() {
				return i;
			}
		};
	}

	public static void main(String[] args) {
		Parcel7 p = new Parcel7();
		Contents c = p.contents();
		System.out.println(c.getClass().getName());
	}
}
/**output:
 * thinking.chapter10.Parcel7$1
 */
